<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邮箱激活 - 故事电影平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background-color: #f5f7fa;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            color: #333;
            line-height: 1.6;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 600px;
            width: 100%;
            background: #ffffff;
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin: 0 auto;
        }

        /* 头部样式 */
        .header {
            background: linear-gradient(90deg, #ffcc00, #ff6b00);
            padding: 25px 20px;
            text-align: center;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .logo-icon {
            font-size: 28px;
            color: #1a1a2e;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: #1a1a2e;
        }

        .header h1 {
            font-size: 20px;
            color: #1a1a2e;
            margin-top: 8px;
            font-weight: 600;
        }

        /* 内容区域 */
        .content {
            padding: 30px 25px;
        }

        .message {
            text-align: center;
            margin-bottom: 25px;
        }

        .message h2 {
            font-size: 28px;
            margin-bottom: 15px;
            color: #ff6b00;
            position: relative;
            display: inline-block;
            padding-bottom: 10px;
        }

        .message h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, #ffcc00, #ff6b00);
            border-radius: 3px;
        }

        .message p {
            line-height: 1.7;
            color: #555;
            font-size: 17px;
            max-width: 550px;
            margin: 15px auto 25px;
        }

        .highlight {
            color: #ff6b00;
            font-weight: 600;
            position: relative;
            display: inline-block;
        }

        /* 激活卡片 */
        .activation-card {
            background: #f8f9fc;
            border-radius: 12px;
            padding: 25px;
            margin: 25px 0;
            text-align: center;
            border: 1px solid #eaeef5;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
            position: relative;
            overflow: hidden;
        }

        .activation-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #ffcc00, #ff6b00);
        }

        .status-icon {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
            margin: 0 auto 25px;
            background: rgba(255, 204, 0, 0.1);
            border: 3px solid #ffcc00;
            color: #ff6b00;
            animation: pulse 2s infinite;
        }

        /* 激活信息 - 修复邮箱显示问题 */
        .activation-info {
            background: #ffffff;
            border-radius: 10px;
            padding: 25px;
            margin: 25px 0;
            text-align: left;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            border: 1px solid #eaeef5;
        }

        .info-item {
            display: flex;
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px solid #eaeef5;
        }

        .info-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .info-label {
            width: 120px;
            color: #ff6b00;
            font-weight: 600;
            font-size: 15px;
            flex-shrink: 0;
        }

        .info-value {
            flex: 1;
            color: #444;
            font-size: 16px;
            font-weight: 500;
            /* 关键修复：防止邮箱地址被分割 */
            word-break: break-all;
            display: inline-block;
            padding: 5px 0;
        }

        /* 邮箱地址特殊处理 */
        .email-value {
            background: #f8f9fc;
            border-radius: 6px;
            padding: 8px 12px;
            display: inline-block;
            border: 1px solid #eaeef5;
            font-family: monospace;
            font-size: 15px;
        }

        .btn-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        /* 按钮 */
        .activation-btn {
            display: inline-block;
            padding: 16px 45px;
            background: linear-gradient(90deg, #ffcc00, #ff6b00);
            color: #000;
            border: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 20px 0;
            box-shadow: 0 5px 15px rgba(255, 108, 0, 0.2);
            text-decoration: none;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .activation-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #ffb300, #ff5e00);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .activation-btn:hover::before {
            opacity: 1;
        }

        .activation-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 108, 0, 0.3);
        }

        .activation-btn:active {
            transform: translateY(0);
        }

        .activation-btn i {
            margin-right: 10px;
        }

        /* 加载指示器 */
        .loading {
            display: none;
            margin: 30px 0;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 204, 0, 0.3);
            border-top: 5px solid #ff6b00;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading p {
            text-align: center;
            color: #ff6b00;
            font-size: 18px;
            font-weight: 500;
        }

        .message-box h3 {
            font-size: 24px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .message-box p {
            line-height: 1.6;
            font-size: 16px;
        }

        .success h3 {
            color: #2e7d32;
        }

        .error h3 {
            color: #c62828;
        }

        .success p {
            color: #388e3c;
        }

        .error p {
            color: #d32f2f;
        }

        /* 操作按钮 */
        .actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 14px 30px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            outline: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-secondary {
            background: transparent;
            color: #ff6b00;
            border: 2px solid #ff6b00;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 108, 0, 0.1);
        }

        .btn:active {
            transform: translateY(0);
        }

        /* 安全提示 */
        .security-note {
            background: rgba(244, 67, 54, 0.05);
            border: 1px solid rgba(244, 67, 54, 0.15);
            border-radius: 8px;
            padding: 18px;
            margin: 30px 0 25px;
            font-size: 15px;
            color: #d32f2f;
            line-height: 1.6;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .security-note i {
            font-size: 20px;
            margin-top: 2px;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            padding: 25px;
            color: #666;
            font-size: 14px;
            border-top: 1px solid #eaeef5;
            background: #f8f9fc;
            line-height: 1.7;
        }

        .footer p {
            margin-bottom: 8px;
        }

        /* 动画效果 */
        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 响应式调整 */
        @media (max-width: 600px) {
            .content {
                padding: 20px 15px;
            }

            .header {
                padding: 20px 15px;
            }

            .logo-text {
                font-size: 22px;
            }

            .header h1 {
                font-size: 18px;
            }

            .message h2 {
                font-size: 24px;
            }

            .message p {
                font-size: 16px;
            }

            .activation-card {
                padding: 20px 15px;
            }

            .activation-info {
                padding: 20px 15px;
            }

            .info-item {
                flex-direction: column;
                gap: 8px;
            }

            .info-label {
                width: 100%;
                padding-bottom: 5px;
            }

            .info-value {
                width: 100%;
                padding: 0;
            }

            .activation-btn {
                padding: 14px 30px;
                font-size: 16px;
                width: 100%;
            }

            .actions {
                flex-direction: column;
                gap: 10px;
            }

            .btn {
                width: 100%;
                padding: 14px;
            }

            /* 微信特定样式修复 */
            .email-value {
                font-size: 14px;
                padding: 6px 10px;
                display: block;
                word-break: break-all;
            }
        }
    </style>
</head>
<body>
<!-- 主容器 -->
<div class="container">
    <!-- 头部 -->
    <div class="header">
        <div class="logo">
            <i class="fas fa-film logo-icon"></i>
            <div class="logo-text">故事电影平台</div>
        </div>
        <h1>邮箱账户激活</h1>
    </div>

    <!-- 内容区域 -->
    <div class="content">
        <div class="message">
            <h2>激活您的账户</h2>
            <p>感谢您注册故事电影平台！请完成邮箱验证以激活您的账户，开启您的电影之旅</p>
        </div>

        <!-- 激活卡片 -->
        <div class="activation-card">
            <div class="status-icon">
                <i class="fas fa-envelope-open-text"></i>
            </div>

            <div class="activation-info">
                <div class="info-item">
                    <div class="info-label">邮箱地址：</div>
                    <div class="info-value" th:text="${email}">1744609175@qq.com</div>
                </div>
                <div class="info-item">
                    <div class="info-label">用户名：</div>
                    <div class="info-value" th:text="${username}">zw</div>
                </div>
                <div class="info-item">
                    <div class="info-label">注册时间：</div>
                    <div class="info-value" th:text="${registerTime}">2025年6月15日 14:15:08</div>
                </div>
            </div>

            <div class="btn-container">
                <a th:href="${redirectUrl}" class="activation-btn" id="activateBtn">
                    <i class="fas fa-check-circle"></i> 立即激活账户
                </a>
            </div>

        </div>

        <!-- 安全提示 -->
        <div class="security-note">
            <i class="fas fa-shield-alt"></i>
            <div>安全提示：请勿向任何人透露您的账户信息。此激活链接将在24小时后失效。</div>
        </div>

        <!-- 操作按钮 -->
        <div class="actions">
            <button class="btn btn-secondary">
                <i class="fas fa-question-circle"></i> 帮助中心
            </button>
            <button class="btn btn-secondary">
                <i class="fas fa-headset"></i> 联系客服
            </button>
            <button class="btn btn-secondary" id="retryBtn" style="display: none;">
                <i class="fas fa-redo"></i> 重试激活
            </button>
        </div>
    </div>

    <!-- 页脚 -->
    <div class="footer">
        <p>此激活请求由系统自动发送，请勿直接回复</p>
        <p>邮箱：support@storycinema.com | 电话：400-123-4567</p>
        <p>© 2025 故事电影平台 版权所有</p>
    </div>
</div>

<script>
</script>
</body>
</html>